package com.codingfuture.service.impl;

import com.codingfuture.entity.CourseStage;
import com.codingfuture.mapper.CourseStageMapper;
import com.codingfuture.service.CourseStageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseStageServiceImpl implements CourseStageService {

    @Autowired
    private CourseStageMapper courseStageMapper;


    @Override
    public List<CourseStage> list(Integer id) {
        return courseStageMapper.findById(id);
    }

    @Override
    public int add(CourseStage courseStage) {
        return courseStageMapper.insert(courseStage);
    }
}
